<script setup lang='ts'>
import { reactive } from 'vue'

const visible = defineModel<boolean>()

const form = reactive({
  name: '',
  region: '',
  date1: '',
  date2: '',
  delivery: false,
  type: [],
  resource: '',
  desc: '',
  customer: '',
})
</script>

<template>
  <el-dialog
    v-model="visible"
    title="发起测试流程"
    width="600px"
    :before-close="() => visible = false"
  >
    <el-form :model="form" label-width="auto" style="max-width: 600px">
      <el-divider direction="horizontal">
        客户信息
      </el-divider>
      <el-form-item label="客户归集*">
        <el-select placeholder="">
          <el-option label="无" value="无" />
        </el-select>
      </el-form-item>
      <el-form-item label="业务归集*">
        <el-input v-model="form.name" placeholder="请为此业务命名" />
      </el-form-item>
      <el-form-item label="客户主体(商标)名称*">
        <el-input v-model="form.name" />
      </el-form-item>
      <el-form-item label="服务级别">
        <el-select placeholder="">
          <el-option label="无" value="1" />
          <el-option label="一级(鲸鱼)" value="1" />
          <el-option label="二级(海豚)" value="2" />
          <el-option label="三级(鲨鱼)" value="3" />
          <el-option label="四级(杂鱼)" value="4" />
        </el-select>
      </el-form-item>
      <el-form-item label="客户签约主体名称">
        <el-input v-model="form.name" />
      </el-form-item>
      <el-form-item label="对接人姓名*">
        <el-input v-model="form.name" />
      </el-form-item>
      <el-form-item label="角色*">
        <el-input v-model="form.name" />
      </el-form-item>
      <el-form-item label="联系方式*">
        <el-input v-model="form.name" />
      </el-form-item>

      <!-- <el-alert type="info" effect="light" show-icon closable>
        模糊搜索
      </el-alert> -->

      <el-divider direction="horizontal">
        业务描述
      </el-divider>
      <el-form-item label="业务类型*">
        <el-select placeholder="">
          <el-option label="云专线" value="云专线" />
          <el-option label="云网络" value="云网络" />
          <el-option label="Fusionwan" value="Fusionwan" />
        </el-select>
      </el-form-item>
      <el-form-item label="商机来源*">
        <el-select placeholder="">
          <el-option label="市场" value="市场" />
          <el-option label="渠道" value="渠道" />
          <el-option label="老客户" value="老客户" />
          <el-option label="新开发" value="新开发" />
          <el-option label="其他" value="其他" />
        </el-select>
      </el-form-item>
      <SLAItem />
      <el-form-item label="预估报价">
        <el-input placeholder="">
          <template #append>
            元
          </template>
        </el-input>
      </el-form-item>
      <el-form-item label="项目经理(PM)*">
        <el-select placeholder="">
          <el-option label="张三" value="张三" />
          <el-option label="李四" value="李四" />
        </el-select>
      </el-form-item>
      <el-form-item label="售前*">
        <el-select placeholder="">
          <el-option label="王五" value="王五" />
          <el-option label="赵六" value="赵六" />
        </el-select>
      </el-form-item>
      <el-form-item label="测试需求描述*">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item label="测试周期*">
        <el-input placeholder="">
          <template #append>
            天
          </template>
        </el-input>
      </el-form-item>
      <el-form-item label="成单关键要素">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
    </el-form>

    <template #footer>
      <span>
        <el-button @click=" visible = false">暂存</el-button>
        <el-button @click=" visible = false">关闭</el-button>
        <el-button type="primary" @click="visible = false">确定</el-button>
      </span>
    </template>
  </el-dialog>
</template>
